package com.fierce.cloud.ota.service;

import com.fierce.cloud.core.common.service.Service;
import com.fierce.cloud.core.web.responseDto.Response;
import com.fierce.cloud.ota.model.VersionInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: Fierce
 * @Date: 2021/2/23 11:11
 */
public interface VersionInfoService  extends Service<VersionInfo> {
    VersionInfo getNewestVersionByAppId(Long appId);

    /**
     * 版本上传
     *
     * @param file 上传文件
     * @return
     */
    String versionUpload(String versionName, MultipartFile file);

    /**
     * 版本下载
     *
     * @param name     版本名 Hash
     * @param response
     */
    void versionDownload(String name, HttpServletResponse response);
}
